/**   
* @Title: PersonalInfoResponse.java 
* @Description: TODO
* @author Mengting Lu   
* @date 2015年10月8日 下午2:35:09 
*/
package com.onstar.cn.more.response;

import java.io.Serializable;

import android.text.TextUtils;

/**
 * @ClassName: PersonalInfoResponse
 * @Description: 个人账户
 * @author Mengting Lu
 * @date 2015年10月8日 下午2:35:09
 */
public class VehicleImgRes implements Serializable {

	// "imageID": 7327,
	// "brand": "CHEVROLET",
	// "modelDesc": "雪佛兰 沃蓝达",
	// "thumbnailURL":
	// "http://m-idt2.onstar.com.cn/emip/vehicle/2016032518060156789.png",
	// "imageURL":
	// "http://m-idt2.onstar.com.cn/emip/vehicle/2016032518060156733.png",
	// "osType": "IPHONE_LARGE"

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private int imageID;
	private String brand;
	private String modelDesc;
	private String thumbnailURL;
	private String imageURL;
	private String osType;

	public int getImageID() {
		return imageID;
	}

	public void setImageID(int imageID) {
		this.imageID = imageID;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getModelDesc() {
		return modelDesc;
	}

	public void setModelDesc(String modelDesc) {
		this.modelDesc = modelDesc;
	}

	public String getThumbnailURL() {
		return thumbnailURL;
	}

	public void setThumbnailURL(String thumbnailURL) {
		this.thumbnailURL = thumbnailURL;
	}

	public String getImageURL() {
		return imageURL;
	}

	public void setImageURL(String imageURL) {
		this.imageURL = imageURL;
	}

	public String getOsType() {
		return osType;
	}

	public void setOsType(String osType) {
		this.osType = osType;
	}
	
	@Override
	public boolean equals(Object o) {
		if(o == null){
			return false;
		}
		if(!(o instanceof VehicleImgRes)){
			return false;
		}
		if(TextUtils.isEmpty(((VehicleImgRes)o).getThumbnailURL())){
			return false;
		}
		if(((VehicleImgRes)o).getThumbnailURL().equals(this.getThumbnailURL())){
			return true;
		}
		return super.equals(o);
	}

}
